# from alipay import AliPay, DCAliPay, ISVAliPay
# from alipay.utils import AliPayConfig
# from django.conf import settings
# print(settings.ALI_PRI_KEY_PATH)
# app_private_key_string = settings.ALI_PRI_KEY_PATH
# alipay_public_key_string = settings.ALI_PUB_KEY_PATH
#
# alipay = AliPay(
#     appid=settings.ALI_APPID,
#     app_notify_url=settings.ALI_NOTIFY_URL,  # 默认回调 url
#     app_private_key_string=app_private_key_string,
#     # 支付宝的公钥，验证支付宝回传消息使用，不是你自己的公钥,
#     alipay_public_key_string=alipay_public_key_string,
#     sign_type="RSA2",  # RSA 或者 RSA2
#     debug=True,  # 默认 False
#     verbose=True,  # 输出调试数据
#     config=AliPayConfig(timeout=15)  # 可选，请求超时时间
# )
#
# # dc_alipay = DCAliPay(
# #     appid="appid",
# #     app_notify_url="http://example.com/app_notify_url",
# #     app_private_key_string=app_private_key_string,
# #     app_public_key_cert_string=app_public_key_cert_string,
# #     alipay_public_key_cert_string=alipay_public_key_cert_string,
# #     alipay_root_cert_string=alipay_root_cert_string
# # )
#
